//
//  DriverViewController.h
//  
//
//  Created by chenxu on 15/3/8.
//
//

#import <UIKit/UIKit.h>
#import "Car.h"
#import "Insurances.h"
@interface DriverViewController : UIViewController<UITableViewDataSource,UITableViewDelegate,UIActionSheetDelegate>{
    NSInteger companyIndex;
    NSString *companyname;
    NSIndexPath* getClick;

}

//页面的一些属性
@property (strong,nonatomic)NSDictionary* insuranceInfo,*driversInfo;
@property (strong,nonatomic,readwrite)NSString *driver;//标志是哪种开车的
@property (strong,nonatomic)Insurances *ins;
@property (strong,nonatomic,readwrite)NSArray *companies;

//专家解析界面
@property (weak, nonatomic) IBOutlet UIView *analysis;
@property (strong, nonatomic) IBOutlet UILabel *me;
@property (strong, nonatomic) IBOutlet UILabel *slogan;
@property (strong, nonatomic) IBOutlet UITextView *mysentence;
@property (strong, nonatomic) IBOutlet UITextView *expertsentence;
@property (strong, nonatomic) IBOutlet UIImageView *avatar;
- (void)loadlabels;
@property (strong, nonatomic) IBOutlet UIImageView *myimg;
@property (strong, nonatomic) IBOutlet UIImageView *expertimg;



//推荐方案界面
@property (weak, nonatomic) IBOutlet UIView *recommend;
@property (weak, nonatomic) IBOutlet UITableView *insurances;
@property (weak, nonatomic) IBOutlet UIView *tablebackground;

- (IBAction)getPrice:(id)sender;
- (IBAction)switchview:(id)sender;

//选择公司
@property (strong, nonatomic) IBOutlet UIButton *getPriceBtn;
@property (strong, nonatomic)UIActionSheet *sheet;
@property (strong, nonatomic) IBOutlet UILabel *companyinfo;
@property (strong, nonatomic) IBOutlet UILabel *carid;//显示车牌号
- (IBAction)selectcompany:(id)sender;
- (IBAction)selectcar:(id)sender;



- (NSDictionary*)toPriceParams;

@end
